﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DIProject.Data
{
    public class AmountCurrentBalancesPricesSupplier
    {
        public class AmountCurrentBalancesPrices
        {
            public string Name { get; private set; }
            public decimal sum_no { get; private set; }
            public int count_no { get; private set; }
            IDataRecord Record { get; set; }
            private AmountCurrentBalancesPrices() { }
            public AmountCurrentBalancesPrices(IDataRecord record)
            {
                if (record == null)
                    throw new ArgumentNullException("reader");
                this.Record = record;
                Init();
            }
            void Init()
            {
                this.Name = Convert.ToString(Record["Name"]);
                this.sum_no = Convert.ToDecimal(Record["sum_no"]);
                this.count_no = Convert.ToInt32(Record["count_no"]);
            }
        }
    }
}
